<?php
/**
 * Authentication interface
 * @author wangXi <iwisunny@gmail.com>
 * Date: 2015/12/3 11:36
 */
namespace UserSystem;

interface AuthTokenStoreInterface
{
    function has($token);
    function get();
    function set($token);
}

interface AuthTokenProviderInterface
{

}

//propagate token to other domains
interface AuthTokenEmitterInterface
{

}

interface AuthInterface
{
    public function authenticate($credentials);
    public function deauthenticate();
    public function checkAuth();
}